package com.meatball.game.data

import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.Instant
import java.util.Date

/**
 * TODO 聊天消息模型
 *
 * @property from 发送者
 * @property text 消息内容
 * @property timestamp 时间戳
 */
data class ChatMessage (
        var id: String = "",
        var from: String = "",
        var avatar: String = "",
        var text: String = "",
        var roomId: String = "",
        var timestamp: Long = System.currentTimeMillis(),
        var player: Player = Player()
)
